export function useLocation() {
    const href = window.location.href;
    const url = new window.URL(href, 'http://localhost')
    return url;
}